<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>旋转效果</title>
    <style>
        .nav {
            width: 200px;
            height: 200px;
            margin: 100px auto;
        }
        
        .nav img {
            width: 100%;
            height: 100%;
            transform: rotate(50deg);
            transition: all 5s;
        }
        
        .nav img:hover {
            transform: rotate(360deg);
        }
    </style>
</head>

<body>
    <div class="nav">
        <img src="../02-案例/media/pic.jpg" alt="" />
    </div>
</body>

</html>